#!/bin/bash
#:set ff=unix 修改编码
yum -y install wget
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
cat /etc/redhat-release | grep 8.
if [ $? -eq 0 ]; then
		echo "server ntp.aliyun.com iburst">>/etc/chrony.conf && systemctl restart chronyd.service && chronyc sources -v #时区设置同步
        rm -rf /etc/yum.repos.d/
        mkdir /etc/yum.repos.d/
     	wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
     	yum clean all #清理缓存
     	yum makecache #生成缓存
fi
yum -y install epel-release
yum -y install bash-c* 
yum -y install bash-completion
# 上传下载文件 rz 上传 sz 文件名 下载到本地
yum install -y lrzsz

yum install openssh* -y     #安装    
systemctl  enable   sshd  #启动  通过xshill连接即可
systemctl  start    sshd

yum -y install net-tools
yum -y install vim

systemctl stop firewalld.service    #关闭防火墙
systemctl disable firewalld.service #开机禁用防火墙